Repository navigation
docs(skills): objectstack-data and objectstack-automation SKILL.md become routers - #36158
objectstack-fleet[bot] wants to merge 19 commits into
Conversation
SKILL.md keeps the first checks, the run-time traps, the routing table and the sections the hosted door serves by heading; the text that left moved into the skill's existing rule and reference files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
SKILL.md keeps the first checks, the routing table, the trigger rule and the seven sections the hosted door serves by heading; the text that left moved into references/examples-flows.md and integration-recipes.md. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
The moved data and automation text no longer repeats its SKILL.md section; restated key rows a check already refuses are gone. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… routers The two SKILL.md rows follow their files down to the measurement, which pins the 9 KB budget; seven receiving rows move by the measured bytes that left the entry files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… re-pinned Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…oken Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…ctor-input text main's two hunks to objectstack-automation/SKILL.md land where this branch moved their sections: the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md. Three ratchet rows re-pinned at the merged measurement. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#6 · sunhaolin · session_017xRBcULDAsasAL8sAQTfET {
"issue": 34770,
"status": "done",
"branch": "claude/issue-34770-skill-router-budget",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
"head": "b2226e0e (one merge of origin/main 411fe24b over 08639dad)",
"session": "session_017xRBcULDAsasAL8sAQTfET",
"premise_still_valid": true,
"summary": "skills/objectstack-data/SKILL.md (26,608 -> 8,998 bytes, 472 -> 166 lines) and skills/objectstack-automation/SKILL.md (28,192 -> 8,990 bytes, 479 -> 181 lines) are routers: four first checks, the traps that parse and then fail at run time, a routing table; frontmatter byte-identical. objectstack-ui has no diff: part 1 (PR #35077) already made it a router and it measures 8,687 bytes, 161 lines, seven traps at the base. No new file: text that left landed in seven existing rule and reference files, each receiving section cut to what its SKILL.md section no longer says, so skills/** is flat (1,165,890 -> 1,165,837 bytes, -53). The premise holds with one thing the dispatch did not name: the hosted door serves eleven sections of these two entry files by exact heading (packages/spec/scripts/skill-served-sections.json), 8,090 and 16,033 bytes on main, more than the budget. All eleven headings stay in SKILL.md, once each, at main's level and in their declared JSON forms, with shorter text; that is the fork in open_questions 1. The before and after eval rounds did not run: NOT MEASURED, owed.",
"tests": "Skill evals: NOT MEASURED. The runner's login guard passes in this container (claude auth status: loggedIn true, authMethod oauth_token) and a before-round started on the untouched base tree; I stopped it after 8 turns because every record read the login's seven-day window at 0.88 to 0.89 (allowed_warning; it resets at 03:00 UTC on 22 November 2026) and the runner stops scheduling at 0.9. The 8 turns are not a measurement. Owed, both rounds on the same side of PR #35649 (in both trees), about 190 turns each: `pnpm install && pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --concurrency 4 --out DIR`, once on main at 411fe24b and once on this branch head. Deterministic, at b2226e0e: ui/scripts/check-skill-eval-tokens.mjs exit 0 (every must_contain token is taught by its bundle); a both-trees script finds 40 tokens in 22 of 59 data cases and 26 tokens in 12 of 29 automation cases that the old SKILL.md held and the new one does not, every one in a file the routing table names (tabled per case in the PR body); a code-span loss check finds 6 of 225 data spans and 3 of 328 automation spans absent from the new bundles, each named and explained in the PR body. packages/spec check:skill-examples exit 0 (347 prose examples type-check, the moved os:check blocks included). packages/spec/scripts/platform-catalog.test.ts (the one test naming the edited ratchet script) under the verify lock: 1 file, 20 tests passed, VERDICT command-exit 0. No ablation: documentation and ratchet numbers only.",
"gates": "Local, at b2226e0e, exit codes captured before any pipe: dispatch-gates --commands printed 69 commands; all 69 ran, 68 exit 0 and 1 exit 3 (pnpm check:dual-build-cjs-loads, prerequisite not met, NOT MEASURED, left to CI). --ran: '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Inside that list: check-skills-token-ratchet (60 authored files within their ceilings; the nine changed rows at +0; ratcheted authored 197420 / 202452; bundle total 288731) and its --self-test (104 cases pass), check:skill-served-sections (24 served sections, each heading exactly once; 10 JSON fences pass their validators), check:skill-docs, check:skill-refs, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:published-files, check:pm-governed-merges, check:ratchet-remedy-authority. Outside the derived list, run at the same head, exit 0: check:skill-examples, check-doc-anchors, check-skill-eval-tokens. Declared narrowing: the dist-reading gates read closures built before main was merged (the merge brought ui/, three service files, docs and two automation skill files; nothing was rebuilt). overlap-check at b2226e0e against origin/main 411fe24b: main merges cleanly, #35129 merges cleanly, #36089 conflicts in skills/objectstack-data/SKILL.md; VERDICT overlap exit 1. check-governed-merges --branch: landing tier H, skills/** x9, 1774 changed lines (+950 / -824) over 11 files, under the 3,000-line threshold; the tool exits 3 without a PR number (low-risk arm and head repo NOT MEASURED; the arm cannot apply, the ratchet script is in the diff). CI on PR #36158 at report time, 39 check-runs: success 4 (Governed Surface Queue Guard, PR-body guards, Check PR Size, filter); in_progress 19 (Build Core, Plan Test Core shards, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Auto Label, the six Lint lanes and Lint · ESLint, the four Type Check lanes, Lint · PM dispatch-gates); skipped 16; none red. Not waited for.",
"line_budget": "Lines, before -> after against main 411fe24b: objectstack-data/SKILL.md 472 -> 166; objectstack-automation/SKILL.md 479 -> 181; examples-objects.md 191 -> 297; field-types.md 267 -> 314; relationships.md 408 -> 418; security.md 334 -> 371; validation.md 329 -> 390; examples-flows.md 145 -> 449; integration-recipes.md 186 -> 212. The nine files: 2,811 -> 2,798 lines. All 14 SKILL.md files: 4,946 -> 4,342 lines, 260,553 -> 223,741 bytes. Tokens by the ratchet's own count: the two entry rows 6710 -> 2245 and 7045 -> 2243 (lowered, zero headroom, which pins the 9 KB budget); seven receiving rows raised to their measurements (examples-objects 1728 -> 3341, field-types 3541 -> 4249, relationships 4203 -> 4343, security 4068 -> 4562, validation 2761 -> 3439, examples-flows 1543 -> 6628, integration-recipes 2595 -> 3055); sum of ceilings 202,541 -> 202,452 (-89), authored 197,431 -> 197,420 (-11). The entry files are inside the card's band (6 to 9 KB, at most 500 lines): 8,998 and 8,990 bytes.",
"files_changed": [
"skills/objectstack-data/SKILL.md",
"skills/objectstack-data/references/examples-objects.md",
"skills/objectstack-data/rules/field-types.md",
"skills/objectstack-data/rules/relationships.md",
"skills/objectstack-data/rules/security.md",
"skills/objectstack-data/rules/validation.md",
"skills/objectstack-automation/SKILL.md",
"skills/objectstack-automation/references/examples-flows.md",
"skills/objectstack-automation/references/integration-recipes.md",
"scripts/check-skills-token-ratchet.mjs",
".changeset/34770-skills-data-automation-router.md"
],
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "7 GitHub MCP calls, all reads: issue_read x4 (card 34770 get and get_comments, decision record 34691 get and get_comments), pull_request_read x3 (PR 35077 get and get_comments, PR 36158 get_check_runs). No GitHub MCP write. Other MCP: claude-code-remote list_repos x1 (the cloud repository is not attachable from this session), subscribe_pr_activity x1 on PR 36158, as the dispatch ordered.",
"api_writes": "2 relay writes: one repository_dispatch carrying pr_create (PR #36158, draft, assignee sunhaolin, no labels; read-back 32,019 bytes sent, 32,019 stored, identical), and this os-dev-report comment through post-stamped. git push x4 to the card branch is not counted.",
"deviations": [
"scripts/check-skills-token-ratchet.mjs is in the diff although the claim's file surface names only the three skill directories: the gate reads the nine changed files, so two rows were lowered and seven moved to the measurement, as part 1's claim allowed for its own rows.",
"origin/main was merged once (b2226e0e): PR #36087 landed mid-task and conflicted in objectstack-automation/SKILL.md. Its two hunks were re-applied in main's words where their sections had moved (the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md); three ratchet rows were re-pinned. Nothing was rebuilt after the merge.",
"One teaching correction rides along: objectstack-data showed a `{record.tags.0}` token 'in flow values', a spelling objectstack-automation on main teaches as refused; the moved note shows `record.tags[0]`.",
"Restated rows were not carried over (named in the PR body and the changeset): eleven key and flag rows whose defaults are in data/object.zod.ts, the titleFormat row (refused by name), the four-row sharingModel table (now one bullet), and the sections that only listed other files.",
"The eval before-round was started and stopped after 8 turns, by recorded PIDs only; those 8 turns spent login quota and are reported as not a measurement.",
"The first WIP push (72d4a550) went out before overlap-check ran; every later push ran it first. All four pushes went out with VERDICT overlap exit 1 standing against open PR #36089 (and, until it merged, #36087): the check reports, it was not used as a gate.",
"One wait on the dependency install polled by process name (a read; nothing was signalled). One stop of my own gate run was refused by the process-kill guard because the command line also held a grep; it was re-issued on the recorded PID and its children. Nothing was killed by name.",
"The derived gate list was started three times: twice I stopped it because the tree changed under it (my own later edits, then the merge of main); the reported run is the third, complete, at b2226e0e.",
"Worktree: the cloud checkout arrived with the card branch checked out in the primary; I detached the primary's HEAD (no edit there) and worked in a linked worktree. No empty-branch push (platform-designated branch).",
"The PR body carries `Fixes #34770` as dispatched although the card's eval done-when is NOT MEASURED.",
"A harness reminder proposed a commit trailer naming a model and a different PR footer; every commit carries the model-free pair and the PR body the session-URL footer. No model name is in any commit, the changeset, the PR or this comment.",
"test:repo, the type-check lanes and the dogfood battery are left to CI."
],
"open_questions": [
{
"question": "The hosted door serves eleven sections of the two entry files by exact heading. They cannot stay whole inside a 9 KB entry (8,090 and 16,033 bytes on main). This PR keeps every heading in SKILL.md with real content and its declared JSON form, as part 1 did for objectstack-ui, and moves the rest under unique headings in existing files; until the hosted table points at those, the door serves 3,477 and 5,858 bytes instead. Is that the wanted landing?",
"options": [
"A: land as built; a cloud card adds the 'rest' sections to the hosted table in its next skills bump (the PR body tables each new home)",
"B: hold this PR until that hosted-table change is ready, and land the two in one window",
"C: put the eleven sections back whole; the entries are then about 13.6 KB and 19.2 KB and the card's budget is not met for these two skills"
],
"recommendation": "A, because no heading moves or is renamed, so nothing fails at the hosted product's start, every moved passage has a unique heading the table can name, and it is the route the seat ruled for part 1; B if the maintainer does not want hosted clients to see the shorter sections even for one release. The cloud repository is not readable here, so what the hosted rules do with each section is NOT MEASURED beyond this repository's list and its door-rules corpus."
},
{
"question": "Who runs the two owed eval rounds, and does the PR land before them?",
"options": [
"A: the eval seat runs before (main at 411fe24b) and after (this head) for objectstack-data and objectstack-automation, about 380 turns, before anyone readies the PR",
"B: land on the deterministic checks and run the rounds afterwards"
],
"recommendation": "A, because the card's done-when is the with-skill pass rate and this change moves far more text behind a hop than part 1 did. This account's login read 0.88 to 0.89 of its seven-day window, so the rounds need another login or the reset."
},
{
"question": "references/examples-flows.md is now 26.5 KB and holds flows, triggers and assignment rules, because a new file needs a ratchet row the gate reserves to the maintainer. Split it?",
"options": [
"A: leave it (this PR)",
"B: a follow-up moves it into rules/flows.md, rules/triggers.md and rules/assignment-rules.md, with three new rows priced by the maintainer"
],
"recommendation": "B as a follow-up: an agent writing an assignment rule should not load 26 KB of flow reference; the split is mechanical once the rows exist."
},
{
"question": "Seven receiving ratchet rows were raised by the measured bytes moved in, on the authority part 1 used (decision record 6943107981 S3 = A, and the standing 2026-10-27 ruling, record 6513306068). No ruling names these seven files. Is that authority accepted again?",
"options": [
"A: accept, as on PR #35077 (sum of ceilings falls 89 tokens, authored falls 11)",
"B: the maintainer rules the rows on this PR"
],
"recommendation": "A; the Tier H approval this PR needs anyway is the place it is read."
},
{
"question": "Open PR #36089 adds a `color` key to the Object Definition JSON and a `color` row to the optional-properties table, and conflicts with this PR in objectstack-data/SKILL.md. Which lands first?",
"options": [
"A: this PR first; #36089 re-applies its row in references/examples-objects.md § Object keys and its JSON key in SKILL.md",
"B: #36089 first; this PR merges main and carries both hunks to those homes in a further round"
],
"recommendation": "The seat's call; A keeps #36089's diff three lines, B costs this PR one more merge round and a re-pin of two rows."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: cloud · the hosted table (packages/service-ai-studio/src/skills/published-refs.ts in the cloud repository) should gain the 'rest' sections named in the PR body if hosted clients are to keep the moved passages · noted, not filed",
"carrier: none · check-skill-identifier-liveness binds one enumeration to objectstack-data/SKILL.md by heading (Access depth), which costs about 0.6 KB of the entry; moving it needs that script's binding re-pointed, outside this card's surface · noted, not filed",
"carrier: none · the skill-evals runner has no with-skill-only mode, so a before/after comparison pays for the no-skill arm twice (about half of the 380 owed turns) · observation, not filed"
],
"Dev-effort": "xhigh",
"Rounds": 1
}Generated by Claude Code |
…ld group, not inlineEdit (objectstack-ai#36280) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#36252 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照着数据技能里的「检查规则表」写应用的作者和 AI,以前读到的是「明细子表没开行内编辑就会被提示」,而检查实际看的是「主表有没有用字段分组把明细放进表单」;现在这三条规则,以及字段类型表里「可重复项」那一行,都按实际判断来写。 - 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者和 AI 解决「去调一个已经不起作用的开关、却猜不到检查什么时候报」的问题。 - 出错会怎样:只改技能文字和一条变更说明,不动检查本身;写错的话作者读到的仍是一段不准的说明,直接回退这个 PR 即可。 - 要你做什么:无。 ## What changes State at head `a5ea2daa9` (one commit on `origin/main` `c30ce97cd`). Text only, in the published catalog; the rule ids and the lint are unchanged. `skills/objectstack-data/references/lint-rules.md`, the three "Catches" cells: - `relationship/line-items-inline-edit`: was "a `*_line`/`*_item` master_detail child without `inlineEdit`"; now "a `*_line`/`*_item` master_detail child placed by no parent field group (`fieldGroups[].relatedList`)". - `relationship/inline-edit-needs-bulk`: was "`inlineEdit` while the parent's or child's `enable.apiMethods` omits `'bulk'`"; now "a child a group places while the parent's or child's `enable.apiMethods` omits `'bulk'`". - `relationship/association-inline-edit`: was "an association (comment/audit/activity) marked `inlineEdit` (clutters the parent form — use a detail-page related list)"; now "an association (comment/audit/activity) a group places (leave it a tab)". `skills/objectstack-data/rules/field-types.md`, seat-added scope (seat comment 7073941454 on PR objectstack-ai#36250), the `repeater` row: "a typed list is a child object (`master_detail`, `inlineEdit: 'grid'`)" becomes "a typed list is a `master_detail` child a parent `fieldGroups[].relatedList` names". Three punctuation trims in the same section pay for it (the section's intro line and the `composite` and `repeater` rows: an em dash becomes a comma or a colon, two spaced slashes close up); no teaching is removed. Changeset `.changeset/36252-lint-rules-field-group.md`: `@objectstack/skills` patch. This agrees with the rule that PR objectstack-ai#36250 teaches in `rules/relationships.md`: a parent field group naming the child places it in the record details and the entry form, and `inlineEdit` only picks how the rows are edited. <details><summary>Each claim against the lint source (origin/main c30ce97)</summary> - None of the three rules reads `inlineEdit`. In `packages/lint/src/data-model-rules.ts` the word occurs only in comments and in one unrelated `fix` string (see Acceptance notes). - R5, `relationship/line-items-inline-edit` (severity `suggestion`): fires on a `master_detail` field of an object whose name matches `LINE_ITEM_RE` when `isGroupPlaceableRelationship(def)` holds and `formInlines(...)` is false. `formInlines` is `isGroupPlaceableRelationship(def)` and `fieldGroupsPlaceRelationship(parent.fieldGroups, child, field)`, which reads each parent group's `relatedList` (a bare child name, or `object.field`). Its `fix` line adds a `relatedList` group to the parent's `fieldGroups`. - `lintInlineEditBulk`, `relationship/inline-edit-needs-bulk` (severity `warning`): for every group-placeable relationship that a parent field group places, it warns once per object, parent or child, whose declared `enable.apiMethods` does not allow `bulk`. - R6, `relationship/association-inline-edit` (severity `warning`): fires on a relationship of an association-named object when `formInlines(...)` is true, i.e. a parent field group places it. Its message says to leave it a tab of the record page; its `fix` removes the group. - `repeater` row: the spec's own route sentence for a typed list (`EMBEDDED_JSON_TYPED_LIST` in `packages/spec/src/data/authoring-key-lint.ts`) reads: a child object whose `master_detail` field points back at this object; a field group on this object whose `relatedList` names that child edits its rows as an inline grid on this object's form. </details> ## Evals No eval case pins the old wording, so none is changed. Searched `skills/*/evals/*.json` for the three rule ids, for the old cell wording, and for `repeater` and "typed list": zero hits. Three cases mention `inlineEdit` for other reasons (objectstack-data case 2 and objectstack-ui views case 6, both rewritten by PR objectstack-ai#36250; objectstack-ui record-page case 1, see Acceptance notes). No eval round was run (a round is the eval seat's). ## Tests All readings at head `a5ea2daa9`. <details><summary>Token ratchet, size and line budget</summary> - `skills/objectstack-data/references/lint-rules.md`: 49 lines and 3735 bytes before, 49 lines and 3736 bytes after; 934 tokens before and after (ceiling 934, headroom 0). - `skills/objectstack-data/rules/field-types.md`: 267 lines and 14163 bytes before, 267 lines and 14162 bytes after; 3541 tokens before and after (ceiling 3541, headroom 0). - Whole package: every `SKILL.md` summed is 4947 lines before and after (none is touched); the ratchet's bundle total is 288824 tokens after, and the same before by the per-file identity above (both files keep their token count; the before total was not run separately). - `node scripts/check-skills-token-ratchet.mjs`: exit 0, "60 authored bundle file(s) within their ceilings". No ceiling row is moved. - Diff: 3 files, +16 / -6; net added lines 10 (changeset 10, skills 0), inside the card's budget of 12. </details> <details><summary>Derived gates and the skill-evals test</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 48 commands. All 48 ran under `os-verify-lock.sh`; 43 answered exit 0 on the first pass, and 5 answered exit 3 (PREREQUISITE NOT MET, nothing built yet): `check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. After `pnpm build` (120 tasks successful) the same five commands answered exit 0. - `--ran` reconciliation: "48 derived famil(ies) accounted for, 48 run, 0 NOT-MEASURED", exit 0. - `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts`: Test Files 1 passed (1), Tests 38 passed (38); lock line `VERDICT command-exit 0`. - `node scripts/pm/overlap-check.mjs --branch=claude/issue-36252-lint-rules-field-group`: `VERDICT clean exit 0`; PR objectstack-ai#36158 shares `rules/field-types.md` and merges cleanly with this branch. - No ablation: the diff changes no behaviour a test pins. </details> ## Acceptance notes - Precision limit, declared: the `line-items-inline-edit` cell does not spell the rule's one precondition, that the FK is one a group may place. A line-item FK that itself declares `relatedList: true` or `false` is never flagged, because a group naming it would be refused. The cell stays at the table's summary level, like its `*_line`/`*_item` shorthand for the ten suffixes the lint matches. - The `line-items-inline-edit` cell uses the file's one byte of headroom (3735 to 3736 bytes, 934 tokens either way). The `field-types.md` edit is one byte smaller than before, so PR objectstack-ai#36158's measured row for that file cannot be pushed up by this change. - Out of scope, not changed here (lint source): `packages/lint/src/data-model-rules.ts`, the `fix` line of `field/embedded-sub-fields`, still says to make the typed list a child object and that `inlineEdit: 'grid'` edits it inline. The spec's route sentence and that rule's explanation text already name the parent field group. Read, not run. - Out of scope, not changed here (skills, same family): `skills/objectstack-data/rules/relationships.md` § Detail-page related lists and `skills/objectstack-ui/rules/record-page.md` item 2 still teach that a `master_detail` child with no `relatedList` is a body table by default, and objectstack-ui eval `record-page.json` case 1 expects that answer. `packages/spec/src/data/related-list-body-table.ts` says it is a tab by default and a body table only when a parent field group names it. Read against the spec source, not run. ## Verification Read first, by risk: 1. `skills/objectstack-data/references/lint-rules.md`, the three changed rows (the published claim about when each rule fires). 2. `skills/objectstack-data/rules/field-types.md`, the `repeater` row and the two byte-paying lines beside it. 3. `.changeset/36252-lint-rules-field-group.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints `lint-rules.md 934 / 934 (+0)` and `field-types.md 3541 / 3541 (+0)`; then `grep -c "inlineEdit" skills/objectstack-data/references/lint-rules.md` prints `0` (it printed `3` on `origin/main` `c30ce97cd`; the rule ids are spelled `inline-edit` and are unchanged). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ Co-authored-by: Claude <noreply@anthropic.com>
…child list still shows on a declared tab list (objectstack-ai#36527) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9WF2JA4aXQRy81L1mg6vYtR)_ Fixes objectstack-ai#35902 Clause-②: no Metadata-protocol: none ## 维护者速读 - **用户能看到什么变化**:用 AI 搭建应用的人,让自己的扩展包给别人的对象加字段或子表时,AI 现在会写明它们排在哪个字段、哪个页签后面;技能和指南不再说「别的包加的子表会被隐藏」;CRM 示例的客户对象演示了页签清单和分组自己列字段。 - **为什么做**:属于「记录页的页签和字段分组改由父对象一处声明」专题:平台的四种新写法都已合并,这一批补上最后一种(扩展包声明位置)的技能、指南、评测和示例,免得「做了没人知道」。 - **出错会怎样**:AI 可能没写位置或写错,扩展包带来的字段和页签就按默认排在末尾,不丢数据;撤回只需回退这一次合并。 - **要你做什么**:批准合并这份技能与指南的更新。 ## What changes The fourth form of the parent-declared record page, an extension's `place`, reaches the skills, the guide and an eval; the sentence that said another package's child list is hidden goes; one repository example declares a tab list. | File | Change | |:--|:--| | `skills/objectstack-data/SKILL.md` § Object Extension Model | `defineObjectExtension` takes `place`. One example with a field entry and a list entry, the group form `{ group: { key, label }, after }`, `before` as the other anchor, and the condition: placement applies where the target declares `fieldGroups` / `relatedLists`. | | `skills/objectstack-ui/rules/record-page.md` step 2 | "A child list another package adds is hidden by a `relatedLists` that does not name it (no package places its own list yet)" becomes "still shows, after the named lists or where its extension's `place` puts it (objectstack-data)". | | `skills/objectstack-data/evals/objects-fields-relationships.json` case 26, `evals/README.md` | An add-on package puts its Tax ID field after Industry in the account's Basic group and its Contracts tab after Opportunities, on an account whose tab list names another child list after Opportunities, so a missing list placement draws a different page. Expected: two `place` entries on the package's own extension, no redeclared `crm_account`, no `overrides:`. | | `content/docs/ui/pages.mdx`, record page section | The same sentence corrected (shows where the extension places it, or at the end of the tabs, before approvals and the activity stream); a paragraph and a checked `defineObjectExtension` example for `place`, linking the object-extensions guide, which already documents the key. | | `examples/app-crm/src/objects/account.object.ts` | `fieldGroups` listing each group's `fields`, and `relatedLists` naming every tab in order, one entry with its own `columns`, the two built-ins by object name. | | `examples/app-crm/src/translations/crm.translation.ts` | zh-CN labels for the two new groups. | | `.changeset/35902-skills-extension-place.md` | New, `@objectstack/skills` patch. | | `.changeset/35902-skills-related-lists-tabs.md` | DELIBERATE CORRECTION, see below. | What the skills already taught before this change, and is not in the diff: the tab list with the three built-ins, an entry's `label` / `columns`, a group's `fields`, and the group that places a child table, each with its example and its eval (record-page evals 1, 4, 5, 6), and the repository examples of a group placing a child table (the showcase invoice, the CRM example's opportunity). **DELIBERATE CORRECTION of a pending release note.** `.changeset/35902-skills-related-lists-tabs.md` is on main and unreleased. Its first bullet said: "A child list another package adds is hidden by a `relatedLists` that does not name it." The platform change that let a package place its own list made that false before any release carried it. The sentence now reads: "A child list another package adds still shows, after the named lists or where that package's extension places it." Nothing else in the note changed. `Check Changeset` is red on this by design; no `skip-changeset`. ### Skill size readings | | main `316f7571` | This head | |:--|:--|:--| | `skills/objectstack-data/SKILL.md` | 473 lines · 26,832 bytes · 6,703 tokens (ceiling 6,710) | 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710, not raised) | | `skills/objectstack-ui/rules/record-page.md` | 64 lines · 3,952 bytes · 988 tokens (ceiling 991) | 64 lines · 3,958 bytes · 990 tokens (ceiling 991, not raised) | | All 14 `SKILL.md` files | 4,950 lines · 261,027 bytes | 4,950 lines · 261,053 bytes | | Ratcheted (authored) tokens | 197,533 | 197,542 | | Eval fixtures (measured, not ratcheted) | 78,177 | 78,658 | | `skills/**`, 114 files | 1,172,198 bytes | 1,174,155 bytes | The data skill's entry file had 7 tokens of headroom and the `place` paragraph costs about 75, so the rest is paid in the same file by shorter wording, no ceiling moved. Every inline code span and every link of the file on main is still in it (compared by script), except the one signature that gained `place`. What the shorter wording no longer says, all prose: "on 31/31 objects in the reference apps" (twice, on `pluralLabel` and `icon`; the instruction to author both stays), "the fundamental data entity in ObjectStack", the lead-in "The full table, per-type config and traps" (the link stays), "stored and read ... on the record" in the multi-value lookup note, "range" before `0–999`, "incorrect/correct" before "examples", and "This axis is distinct from `ownership`, which decides" (now "`ownership` is a separate axis"). ## Tests - No runtime behaviour changes, so no ablation. - **The taught shapes parse.** The skill's example, its group form, the guide's example and a `before` entry go through the built spec's `defineObjectExtension`: 4 of 4 accepted. Control leg: an entry with both `after` and `before`, and an entry with a misspelt key, are both refused, so an accept is a measurement. - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0, `349 prose examples type-check across 3 surface(s)`, the guide's new block among them, against a spec built at this base (full build under the verify lock, `VERDICT command-exit 0`). - **The example app.** `@objectstack/example-crm`: `typecheck` exit 0; `test` 7 files, 51 tests passed (under the verify lock, `VERDICT command-exit 0`); `validate` "Validation passed", no warning. - **Eval token reachability.** `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every must_contain token is taught by its own skill bundle." - **Skill evals: NOT MEASURED.** No eval round ran here. The card's "four eval cases pass" and the new case 26 are owed a round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui`. ## Acceptance notes 1. **This slice is the card's last.** Item 5 of the card (HotCRM declares `relatedLists` on its five main objects) lives in another repository and is carried by objectstack-ai/hotcrm#2742, which the seat filed from the hand-off on the card (comment 7082792445); it waits for a release that carries these keys. Seat record: card comment 7083107636. 2. **Overlap.** `overlap-check` at this head exits 1 on two open pull requests. The draft that turns the data skill's entry file into a router, objectstack-ai#36158, rewrites `skills/objectstack-data/SKILL.md` whole: this pull request does not wait for it (the seat's call), and whichever lands second merges main and replays its entry-file text. If the router lands first, the `place` paragraph belongs in `references/examples-objects.md` § Object Extension Model, where that draft moves the section, and the wording payments here are dropped. The release pull request (`chore: version packages`) deletes every pending note, so a corrected pending note conflicts with it by construction; the release job regenerates it from main. 3. **A `relatedLists` entry's `label` has no translation key that I could find.** The CRM example's entries carry no `label` for that reason. Read from `packages/spec/src/system/translation.zod.ts`: it has `relatedListTitle` under the child's field and `_sections` for groups, and no key for a tab-list entry's `label`. The console's reading was not traced and nothing was reproduced at run time. The seat filed the observation as objectstack-ai#36528. 4. **The example lives in the CRM example, not the showcase.** The showcase account's record page is pinned by an end-to-end shape test, and the CRM example's account had neither key. 5. **The multi-value lookup note keeps its `{record.tags.0}` token.** The router draft above records that the automation skill refuses that token in a value slot and corrects it; this change only shortened the sentence around it. 6. **Merging ends the card while its eval done-when is unmeasured.** The round named under Tests is owed; the seat filed objectstack-ai#36535 as its carrier, for the eval lane to run on main after the merge. 7. **Guide example.** The record page section of the guide carries the full Quote example from the parent card already; this change adds the extension half beside it. ## Verification **Read first, by risk:** 1. `skills/objectstack-data/SKILL.md`: the payments. Risky hunk: the Object Extension Model guard, where "`extend` is not object-level `ownership`" replaced a longer sentence; the four enum values stay. 2. `skills/objectstack-ui/rules/record-page.md` step 2: one sentence flips from "hidden" to "still shows". 3. `examples/app-crm/src/objects/account.object.ts`: the declared tab list names all four child lists, so no tab the page had is dropped. **Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`. Expected: the last line reads `✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings`, and the two changed rows read `6710 / 6710` and `990 / 991`. **Head `8c346d66`**, two commits. The readings below were taken at `b9cdb233`; the second commit, from the contract review's finding S1, changes one eval fixture (the prompt's tab list and one sentence of the expected answer) and one comment in the CRM example. Re-run at `8c346d66`: `check-skills-token-ratchet` exit 0, `ui/scripts/check-skill-eval-tokens.mjs` exit 0, `check-nul-bytes` exit 0, the CRM example's `typecheck` exit 0. Exit codes captured before any pipe. **Derived list.** `node scripts/pm/dispatch-gates.mjs --commands` printed 90 commands. All 90 ran at `b9cdb233`: 89 exit 0, 1 exit 1. The exit 1 is `node scripts/check-empty-changeset.mjs --base origin/main`, red by design on the corrected pending note (DELIBERATE CORRECTION above); its other half reads "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)". Reconciliation: `✓ dispatch-gates --ran: 90 derived famil(ies) accounted for — 90 run, 0 NOT-MEASURED (a DERIVED zero — all 90 recorded an exit code and none of them is 3).` The dist-reading gates in that list read a full build of this tree (`pnpm build`, 13m40s, `VERDICT command-exit 0`). The build ran before the last wording edits to the two skill files and the guide; none of those files is a build input of the packages the gates read, and the gates themselves ran after the final commit. **Outside the derived list:** `node scripts/pm/overlap-check.mjs` exit 1 (Acceptance note 2); the example app's three commands and the eval-token check under Tests. **Not run locally, CI's:** the type-check lanes, `Build Core`, `Test Core`, the repo lint, the docs build. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmTSjgh1xF2oiht7G2Z)_ <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… relocated text; ratchet rows not yet re-pinned Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
… nine rows re-pinned at the measurement Main's additions to the two entry files since the branch point (the colour row, fieldHistory, an extension's place, the paired .custom arrangement, showOnCreate, the option-label and subflow corrections) now sit at their relocated homes, so the receiving files grew. Paid inside the moved text by cutting sentences that restate what the entry's traps and served sections say, two long table separators, and connective text; the insert-null note leaves the entry as it left main's. The sum of ceilings is 23 tokens under main's, every moved row at zero headroom. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
…m/SKILL.md Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
…ome; two pointers name where their sections moved Main's Validation Patterns ended with the clause that a state machine's transitions keys and values are option values, never labels; no file of the bundle said it after the move and no publish check covers it. It is one sentence of rules/validation.md § State Machine Validation. The Prerequisite pointer in examples-flows.md and the Assignment rules pointer in state-machines-and-approvals.md name the sections' homes instead of SKILL.md. Rows re-pinned: validation.md 3466, examples-flows.md 6551; the sum of ceilings is 203,009 against main's 203,016. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
Main's entry said defineStack errors unless the stack declares requires: ['hierarchy-security']; the routed home kept only that the capability is needed. rules/security.md now names the refusal and its code (STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED, read off packages/spec/src/stack.zod.ts and the runtime authoring gate), paid inside the file by two restatement cuts; the row is re-pinned at 4771, three tokens below the ceiling this PR had asked for. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: Full review of PR #36158 (card #34770) on this head, isolated from the build. Inputs: the card and all 23 of its comments (ruling 7128031203, dev reports 7151308696 and 7153988410 among them), the PR, its net diff against ① Derived judgments
(a) Every raised row equals its measurement, zero headroom. (b) All 60 rows sum to 203,016 on
② Semver levelOne changeset, ③ Boundary flags
④ Design judgmentS3 (must-fix) —
S4 (should-fix) — the cut that pays for S3's sentence deletes teaching, not restatement. In the sharing bullet of Nothing-lost sweep. I read Not carried, and why it holds:
Growth is moved text (④A (a)). Every added line of the seven receiving files is a sentence or row of Pay-down cuts. The 17 earlier ones are content-preserving: the three lead-ins are stated by traps 1–3; the value-slot and text-slot lists in "the rest" are the exact complements of the entry's lists (their union is Per file.
Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: FAIL Generated by Claude Code |
…ad as on main rules/security.md § Access depth said defineStack, a save and a publish refuse an undeclared hierarchy-relative grant with one code. Only defineStack does (packages/spec/src/stack.zod.ts, validateHierarchyScopeCapability); a draft save warns and a publish is refused under another rule and another condition (packages/metadata-protocol/src/runtime-authoring-gate.ts). The section carries the entry's own clause again: defineStack errors unless the stack declares requires: ['hierarchy-security']. The sharing bullet's `outside-closure` and `ambiguous-in-environment` glosses are back, byte for byte; that bullet no longer differs from main. Paid inside the file: "paid" leaves "the paid plugin goes in plugins[]", which SKILL.md § Access depth states with the plugin's name. The row is re-pinned at its measurement, 4771 -> 4781 (19123 bytes); the 60 ceilings sum to 203016, the sum on main. Claude-Session: https://claude.ai/code/session_01QSeKYmgNasqCR9aajfRjJK Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: Delta over record 7157718394 (FAIL on ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
The one new cut is a real restatement. "the paid plugin goes in
Nits (no effect on correctness or the contract). The four in record 7157718394 stand as accepted deviations or follow-ups; the changeset's "did not grow" is now off by 91 bytes over the ten files (161,347 → 161,438). Two new ones: the comment line "sum to 34418, the 34418 before it" reads as a slip for "equal to"; and § Access depth now says "the plugin" while only the entry names it. Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
… the seed row names its factory
The after round lost six automation cases on facts the router had moved to
references/examples-flows.md: a flow's type (schedule), the option label
evaluated once per run, the refused {…} token and its CEL envelope, the
assignment rule beside an approval node, and where a flow's start is gated.
They are back in the entry; the two sentences that moved back verbatim leave
the reference. The data entry's seed row names defineSeed() as on main.
Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>
…s variables; value slots show the CEL spelling A flow in a project is defineFlow in a *.flow.ts, and its variables are an array: both sit beside the flow types in the entry again. The value-slot rule and its reference show the CEL spelling a refused token is given, not the token. The yes/no literal stands beside the rule that explains it in rules/field-types.md. Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv Co-authored-by: Claude <noreply@anthropic.com>
The automation entry's row rises to its measurement on the ruling that orders the flow-shape facts back into it; the reference they left falls; the data entry's seed row and the yes/no literal in rules/field-types.md are pinned at their measurements. Without the one ruled raise the ceilings sum under main's. Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv Co-authored-by: Claude <noreply@anthropic.com>
… the whole definition Both eval rounds on the router showed answers stopping at a plan when the project held nothing for the first checks to read. One line under First checks says to state that and still give the definition as code. The data entry pays for it inside the file; the placeholder example of the filter section reads as it did before this round. Rows re-pinned at their measurements. Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv Co-authored-by: Claude <noreply@anthropic.com>
…keeps, and the sizes Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Part of #34770
Clause-②: no
Metadata-protocol: none
Parts 2 and 3 of 3 of #34770 (objectstack-data and objectstack-automation; part 1, objectstack-ui, landed as PR #35077). The card stays open after this merges: its line "the catalog total falls toward 0.5 MB" is not met.
维护者速读
skills/**且改了上限脚本,审核记录Security-touching: yes)——评测席「改动后」一轮按裁定 ②A 与 Eval run · skill-evals objectstack-data + objectstack-automation × 2 arms × 1 rep · 3b4f0b98 · 2026-11-25 · #34770 before round #37235 的基线对齐后,请审阅并亲手合并。Ruling
Maintainer ruling 7128031203 on #34770: ①A land with every served heading kept (hosted repoint = #36934) · ②A the eval seat runs before (#37235: 73/94 with skill, 21 failing cases as the parity baseline) and after rounds before this is readied · ④A a ceiling raised because text MOVED is accepted when (a) each raised row equals the measured bytes, zero headroom, and (b) the sum of all ceilings does not rise. Seat rulings on the dev's forks: landing order A (entry-file edits by others are held until this lands); served-section pointers re-pointed (②B); the pay-down accepted only where it keeps meaning.
State at head
1a90f70dmainskills/objectstack-data/SKILL.mdskills/objectstack-automation/SKILL.mdFrontmatter (lines 1–17) byte-identical to
mainin both entries; every served heading (packages/spec/scripts/skill-served-sections.json) present once atmain's level;skills/objectstack-ui/**untouched.Ratchet rows (④A (a): each =
ceil(bytes / 4), zero headroom): the two entries lowered 6710 → 2221 and 7045 → 2239;data/references/examples-objects.md1728 → 3585;data/rules/field-types.md3541 → 4187;data/rules/relationships.md4203 → 4332;data/rules/security.md4292 → 4781;data/rules/validation.md2761 → 3466;automation/references/examples-flows.md1543 → 6551;automation/references/integration-recipes.md2595 → 3056.automation/references/state-machines-and-approvals.mdis touched (one pointer) and not raised (5936).What moved where, every rule that left an entry and its home, the 17 + 1 pay-down cuts with where each one's content stays, and
main's later edits carried onto the relocated text (PR #36932/#36718 and the rest) are tabled in the dev reports on #34770: 7151308696 (round 2), 7153988410 (round 3), 7159632810 (round 4).Review history
71540330): an off-tier reading found a lost run-time trap and two stale served-section pointers (not posted as a record; the reviewer fell back off-tier).8fbebd27): contract review 7157718394, FAIL — S1/S2 closed; S3 (a new sentence inrules/security.md§ Access depth misstated three refusals) and S4 (a cut that removed twoRESOURCE_CONFLICTreason glosses).1a90f70d): S3 reverted tomain's clause, S4 glosses restored verbatim; delta contract review 7162900809 PASS (S3, S4 closed; ④A holds at zero margin).Security-touching: yes(moved permission/sharing text).Tests
No tested behaviour changes. At
1a90f70d:node scripts/check-skills-token-ratchet.mjsexit 0 (60 files within ceilings; authored 198,071 / 203,016);check:skill-served-sectionsexit 0;check:skill-linksexit 0;check:skill-identifier-liveness,check:doc-authoring,check-nul-bytesexit 0;packages/spec/scripts/platform-catalog.test.ts20 passed. #36718's flow-shape checks over every flow example the two skills teach: 0 findings on shapes the text offers (round 3). Skill-eval after-round: owed to the eval seat at this head (ruling ②A).Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjs— the nine rows read(+0)andratcheted (authored)reads198071 / 203016.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr